<template>
  <div class="nav">
    <van-nav-bar
      :title="title"
      left-arrow
      @click-left="$router.go(-1)"
    />
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      requred: true
    }
  }
}
</script>

<style lang="scss" scoped>
  .nav{
    position: fixed;
    left:0;
    top:0;
    width: 100%;
    z-index: 10;
  }
.van-nav-bar {
  background-color: #f66;
  color:#fff;
  /deep/ .van-nav-bar__title{
    color:#fff;
  }
  /deep/ .van-icon{
    color:#fff;
    font-size: 20px;
  }
}
</style>
